# -*- coding: utf-8 -*-

import requests
import re

from kmail.txtmail import *

r = requests.get("http://tieba.baidu.com/p/2314539885")
str = r.text
pattern = re.compile(r"\w+@\w+\.com")
list = pattern.findall(str)
list[0] = "858066888@qq.com"
list[1] = "1615988888@qq.com"
send_mail(list[0:5], u"警告：不要到处乱留邮箱", u"要注意自己的隐私 ；spider hello world Test from Kevin 1")
exit()

# print(dir(requests))
# exit()
# r = requests.get("http://www.csdn.net/")
# str = "irtf12@gmail.com fdjka dfjkkadf 844056@q.com kfl"
# print list